package cn.jzq.kotoba.modules.designpattern.template;


/**
 * 在templateClass中定义templateMethod
 * @author jzq
 */
public abstract class AbstractDisPlay {
    public abstract void open();

    public abstract void close();

    public abstract void print();

    public final void display() {
        open();
        for(int i = 0; i < 5; i++){
            print();
        }
        close();
    }
}
